package org.chaiyi.template.core.common.contract.method;

import org.chaiyi.template.core.common.contract.Contractor;
import org.chaiyi.template.core.common.repository.QueryInfo;
import reactor.core.publisher.Mono;

import static org.chaiyi.template.core.common.contract.Contractor.Error.COUNT_METHOD_NOT_IMPLEMENTED;

public interface CountContractor extends Contractor {
    default Mono<Long> count(String tenantId, String buCode, QueryInfo query) {
        COUNT_METHOD_NOT_IMPLEMENTED.trigger();
        return null;
    }
}
